package com.shuke.my_test.explain.controller;


import com.shuke.my_test.explain.domain.User;
import com.shuke.my_test.explain.service.ExplainUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 舒克、舒克
 * @date 2025/7/10 09:59
 * @description
 */
@RestController("/explain")
public class ExplainController {

    @Autowired
    private ExplainUser explainUser;

    @RequestMapping("/user")
    public void explainUser() {
        List<User> users = explainUser.explainUser();

        for (User user : users) {
            System.out.println(user);
        }

    }
}
